package com.md.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties(
  prefix = "log-client"
)
@Configuration
@Data
public class LogClientConfiguration {
  private List<String> permitAllAntMatchers = new ArrayList<String>() {
    {
      this.add("/actuator/health");
      this.add("/actuator/info");
      this.add("/v2/api-docs");
      this.add("/actuator/prometheus");
    }
  };
}
